﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin.Master" AutoEventWireup="true" CodeBehind="UserList.aspx.cs" Inherits="yedian.UserList" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">
        function dels(id,user) {
            if (confirm("确定要禁用" + user + "吗？")) {
                $.ajax({
                    type: "POST",
                    url: "Handler.r",
                    dataType: "json",
                    async: false,
                    data: {
                        typename: "jinyongUser",
                        Id: id
                    },
                    success: function (msg) {
                        if (msg.success == "true") {
                            ShowDialogInfoG("禁用成功", window.location.href);
                        }
                        else {
                            ShowDialog(msg.msg);
                            _pass = false;
                        }
                    },
                    error: function (XMLHttpRequest, textStatus, errorThrown) {
                    }
                });
            }
        }
    </script>
    <div style="height:100%">
        <div id="breadcrumb">
            <a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i>Home</a>
            <a href="#" class="current">用户管理</a></div>
         <table width="88%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td class="STYLE6" align="left" style="width: 350px; height: 45px;">
                &nbsp;用户名称： &nbsp;<asp:TextBox ID="UserName" Width="180px" runat="server"></asp:TextBox>&nbsp;<asp:Button
                    ID="Button1" runat="server" class="btn btn-success" Text="查询" OnClick="Button1_Click" />
            </td>
            
        </tr>
    </table>

    <table rules="cols" class="table" width="100%" border="0" cellpadding="0" cellspacing="1">
        <asp:Repeater ID="rptlist" runat="server" EnableViewState="false">
            <HeaderTemplate>
                <tr style=" height: 25px;" class="STYLE5">
                    <td style=" width:140px;">用户名
                    </td>
                    <td style=" width:150px;">微信编号
                    </td>
                    <td style=" width:80px;">性别
                    </td>
                    <td style=" width:80px;">状态
                    </td>
                    <td style="width: 120px;">注册时间
                    </td>
                    <td>操作</td>
                </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr class="tdwwbackground STYLE5">
                    <td style="height: 32px;"><%# Eval("userName")%></td>
                    <td style="height: 32px; word-wrap: break-word;word-break: normal;"><%# Eval("openid")%></td>
                    <td style="height: 32px; word-wrap: break-word;word-break: normal;"><%# sex(Eval("sex").ToString())%></td>
                        <td style="height: 32px; word-wrap: break-word;word-break: normal;"><%# sfrzs(Eval("disabled").ToString())%></td>
                    <td style="height: 32px;word-wrap: break-word;word-break: normal;"><%# Eval("createTime").ToString().Trim()%></td>
                    <td style="height: 32px;"><a href="javascript:;" onclick="dels('<%# Eval("uid")%>','<%# Eval("userName")%>')">禁用</a></td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
           <Yd:PageButton ID="PageBtn" runat="server" />

    </div>

</asp:Content>